import request from '@/utils/request'

export function getHousesList(data) {
  return request({
    url: '/houses/admin/list',
    method: 'post',
    data
  })
}

export function deleteHouses(params) {
  return request({
    url: '/houses/admin/delete',
    method: 'get',
    params
  })
}

export function createHousesDetail(data) {
  return request({
    url: '/houses/admin/create',
    method: 'post',
    data
  })
}

export function updateHousesDetail(data) {
  return request({
    url: '/houses/admin/update',
    method: 'post',
    data
  })
}

export function getHousesDetail(params) {
  return request({
    url: '/houses/admin/getDetail',
    method: 'get',
    params
  })
}

